package C11_8_ExtactInterface.refactorbefore;

/**
 * @ClassName : TimeSheet
 * @Description :
 * @Author : wukj1
 * @Date: 2022/8/16
 **/
public class TimeSheet {

    double charge(Employee employee, int days) {
        int base = employee.getRate() * days;
        if(employee.hashSpecialSkill()) {
            return base * 1.05;
        }
        return base;
    }

}
